package com.banyuan.lesson.object类;

public class Test {
    public static void main(String[] args) {
        Animal a = new Animal(18, "狗狗");
        Dog d = new Dog(18, "狗狗");
        Animal aa = new Dog(18, "狗狗");

        System.out.println(a.getClass() == aa.getClass());
    }
}
